//
//  AppDelegate.m
//  BaiSiBuJie
//
//  Created by wry on 16/4/24.
//  Copyright © 2016年 WRY. All rights reserved.
//

#import "AppDelegate.h"
#import "WRYTabBarController.h"
#import "WRYAdvertisingController.h"
#import "WRYStatusWindow.h"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    //1.创建窗口
    self.window=[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];

    //2.设置窗口的跟控制器:一开始想显示什么界面，就设置谁
    WRYAdvertisingController *adVC=[[WRYAdvertisingController alloc]init];
    [self.window setRootViewController:adVC];


    //3.显示窗口
    [self.window makeKeyAndVisible];


    //恢复状态栏
    application.statusBarHidden=NO;
    //添加窗口在状态栏
    [WRYStatusWindow  show];
    return YES;
}



@end
